// import dva from 'dva';

export default {
  namespace: 'products',
  state: [
    {id: 1,name: 'zhangyong'},
    {id: 2,name: 'zhangzhiwei'}
  ],
  reducers: {
    'delete'(state, {payload: id}) {
      return state.filter(item => item.id !== id);
    }
  },
};
